package day0811T;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/14
 * @Time: 10:14
 * @Description
 *
作业标题(1691)
求和的重载
 */
public class text5T {
    public static void main(String[] args) {
        System.out.println(add(5,8));
        System.out.println(add(1.1,2.3,5.6));
    }
    public static int add(int n1,int n2){
        return n1+n2;
    }

    public static double add(double d1,double d2,double d3){
        return d1+d2+d3;
    }
}
